<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<logic:notPresent name="userName" scope="session">
	<logic:redirect forward="login"></logic:redirect>
</logic:notPresent>

<logic:present name="info" scope="request">
	<font color="red"><bean:write name="info" scope="request" /> </font>
</logic:present>
<table border="1" bordercolor="#AAAAFF" cellspacing="0" cellpadding="0">
	<tr>
		<td align="center">
			<b>项目名称</b>
		</td>
		<logic:equal name="userName" scope="session" value="admin">
			<td align="center">
				<b>申请人</b>
			</td>
		</logic:equal>
		<td align="center">
			<b>申请时间</b>
		</td>
		<td align="center">
			<b>完成时间</b>
		</td>
		<td align="center">
			<b>项目积分</b>
		</td>
		<td align="center">
			<b>倍率</b>
		</td>
		<td align="center">
			<b>款项</b>
		</td>
		<td align="center">
			<b>是否付款</b>
		</td>
	</tr>
	<tr>
		<logic:iterate name="worklist" id="row" indexId="rowNum"
			type="com.yhtl.struts.bean.WorkBean" scope="request">
			<tr>
				<td align="center">
					<!--  bean:write name="rowNum" scope="page" /-->
					<bean:write name="row" property="strProjectName" />
				</td>
				<logic:equal name="userName" scope="session" value="admin">
					<td align="center">
						<bean:write name="row" property="strUserName" />
					</td>
				</logic:equal>
				<td align="center">
					<bean:write name="row" property="strApplyTime" />
				</td>
				<td align="center">
					<bean:write name="row" property="strFinishTime" />
				</td>
				<td align="center">
					<bean:write name="row" property="tblWorkPoint" />
				</td>
				<td align="center">
					<bean:write name="row" property="tblWorkRatio" />
				</td>
				<td align="center">
					<bean:write name="row" property="tblWorkPayvalue" />
				</td>
				<td align="center">
					<logic:equal name="row" property="tblWorkPaystatus" value="0">未付</logic:equal>
					<logic:equal name="row" property="tblWorkPaystatus" value="1">已付</logic:equal>
				</td>
			</tr>
		</logic:iterate>
	</tr>
</table>
第
<bean:write name="page" property="currentPage" />
页 共
<bean:write name="page" property="totalPages" />
页
<html:link action="/viewWork.do?pageMethod=first" paramName="page"
	paramProperty="currentPage" paramId="currentPage">首页</html:link>
<html:link action="/viewWork.do?pageMethod=previous" paramName="page"
	paramProperty="currentPage" paramId="currentPage">上一页</html:link>
<html:link action="/viewWork.do?pageMethod=next" paramName="page"
	paramProperty="currentPage" paramId="currentPage">下一页</html:link>

<html:link action="/viewWork.do?pageMethod=last" paramName="page"
	paramProperty="currentPage" paramId="currentPage">尾页</html:link>
